package com.ruoyi.project.projectCategory.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import java.util.Date;

/**
 * projectCategory对象 project_category
 * 
 * @author xzshan
 * @date 2020-05-26
 */
public class ProjectCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 类别名 */
    @Excel(name = "类别名")
    private String name;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 上级id */
    @Excel(name = "上级id")
    private Long pid;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long cdp;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cdt;

    /** 树类型 */
    @Excel(name = "树类型")
    private Long type;

    /** 成本科目 */
    @Excel(name = "成本科目")
    private Long costSubjectId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setCdp(Long cdp) 
    {
        this.cdp = cdp;
    }

    public Long getCdp() 
    {
        return cdp;
    }
    public void setCdt(Date cdt) 
    {
        this.cdt = cdt;
    }

    public Date getCdt() 
    {
        return cdt;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setCostSubjectId(Long costSubjectId) 
    {
        this.costSubjectId = costSubjectId;
    }

    public Long getCostSubjectId() 
    {
        return costSubjectId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("pid", getPid())
            .append("orderNum", getOrderNum())
            .append("cdp", getCdp())
            .append("cdt", getCdt())
            .append("type", getType())
            .append("costSubjectId", getCostSubjectId())
            .toString();
    }
}
